package example.controller;

import example.service.ThreadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ThreadController {

    @Autowired
    private ThreadService threadService;

    @RequestMapping
    public String test() throws InterruptedException {
        threadService.test();
        System.out.println("threadController");
        return "threadController";
    }
}
